
import { getDict } from '@/utils/index'
import { transferLabelAndValue } from '@/utils/pre-sale'
const dict = getDict([
    '跟进方式',
    '客户级别',
    '跟进方式',
    '跟进结果',
    '来源渠道',
    '性别',
  ])
  export const rulesForm = [
    {
        "type": "input", "field": "tunnelName", "value": "",
        title: "意向车型",
        props: {
            placeholder: "意向车型",
        },
        col: {
            span:12, labelWidth: '120px'
        },
        class: "w-100",
        // validate: [{ required: true, message: '请输入意向车型', trigger: ['blur', 'change'], },]
    },
    {
        "type": "input", "field": "tunnelShortName", "value": "",
        title: "购车预算",
        props: {
            placeholder: "购车预算",
        },
        col: {
            span:12, labelWidth: '120px'
        },
        class: "w-100",
    },
    {
        "type": "input", "field": "tunnelCode", "value": "",
        title: "客户姓名",
        props: {
            placeholder: "客户姓名",
        },
        col: {
            span:12, 
            labelWidth: '120px'
        },
        class: "w-100",
        // validate: [{ required: true, message: '请输入隧道编码', trigger: ['blur', 'change'], },]

    },
    {
        "type": "select", "field": "routeId", "value": "",
        title: "客户级别",
        props: {
            placeholder: "客户级别",
        },
        col: {

            span:12, labelWidth: '120px'
        },
        options: transferLabelAndValue(dict['客户级别']),
        class: "w-100",

    },
    {
        "type": "select", "field": "maintenanceGrade", "value": "",
        title: "跟进方式",
        props: {
            placeholder: "跟进方式",
        },
        col: {

            span:12, 
            labelWidth: '120px'
        },
        options:  transferLabelAndValue(dict['跟进方式']),
        class: "w-100",

    },
    {
        "type": "select", "field": "direction", "value": [],
        title: "跟进结果",
        props: {
            placeholder: "跟进结果",
           
        },
        col: {

            span:12, labelWidth: '120px'
        },
        options:  transferLabelAndValue(dict['跟进结果']),
        class: "w-100",

    },
    {
        "type": "select", "field": "direction1", "value": [],
        title: "来源渠道",
        props: {
            placeholder: "来源渠道",
           
        },
        col: {

            span:12, labelWidth: '120px'
        },
        options: transferLabelAndValue(dict['来源渠道']),
        class: "w-100",

    },
    {
        "type": "select", "field": "direction2", "value": [],
        title: "性别",
        props: {
            placeholder: "性别",
           
        },
        col: {

            span:12, labelWidth: '120px'
        },
        options:  transferLabelAndValue(dict['性别']),
        class: "w-100",

    },
    {
        "type": "input", "field": "startNumber", "value": "",
        title: "年龄",
        props: {
            placeholder: "年龄",
        },
        col: {
            span:12, labelWidth: '120px'
        },
        class: "w-100",

    },
    {
        "type": "input", "field": "terminalNumber", "value": "",
        title: "家庭住址",
        props: {
            placeholder: "家庭住址",
        },
        col: {
            span:12, labelWidth: '120px'
        },
        class: "w-100",

    },
    {
        "type": "input", "field": "terminalNumber1", "value": "",
        title: "身份证号码",
        props: {
            placeholder: "身份证号码",
        },
        col: {
            span:12, labelWidth: '120px'
        },
        class: "w-100",

    },
    {
        "type": "input", "field": "terminalNumber2", "value": "",
        title: "购买用途",
        props: {
            placeholder: "购买用途",
        },
        col: {
            span:12, labelWidth: '120px'
        },
        class: "w-100",

    },
    {
        "type": "input", "field": "terminalNumber3", "value": "",
        title: "购买次数",
        props: {
            placeholder: "购买次数",
        },
        col: {
            span:12, labelWidth: '120px'
        },
        class: "w-100",

    },
    {
        "type": "input", "field": "terminalNumber4", "value": "",
        title: "下次回访时间",
        props: {
            placeholder: "下次回访时间",
        },
        col: {
            span:12, labelWidth: '120px'
        },
        class: "w-100",

    },
    {
        "type": "input", "field": "terminalNumber5", "value": "",
        title: "备注",
        props: {
            placeholder: "备注",
            type:'textarea',
            rows:3
        },
        col: {
            span:24, 
            labelWidth: '120px'
        },
        class: "w-100",

    },

]